<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css1/bootstrap.min.css"/>
		<script src="js1/jquery.min.js"></script>
		<script src="js1/bootstrap.min.js"></script>
		<script>
			$(function(){
				$('#ul1 li').click(function(){
					$(this).addClass('active').siblings().removeClass('active');
				})
			})
		</script>
	</head>
	<body style="margin-bottom: 60px;">
	
		<div >
			<center>
				<h3>员工离职</h3>
				<div class="container-fluid">    
					<div class="row main">	
					<form action=“lz.do” method="post" class="form-horizontal">
						<div id="employeeTable">
							<table class="table table-hover">
								<tr>
									<td>员工工号</td>
									<td>员工姓名</td>
									<td>身份证号</td>
									<td>申请状态</td>
								</tr>
								<c:forEach items="${page.yguser}" var="x">
								<tr>
									<td>${x.ygbh}</td>
									<td>${x.ygxm}</td>
									<td>${x.sfzh}</td>
									<td>
											<div class="btn-group"> 
                                        <a  class="btn btn-primary dropdown-toggle" href="querylz.do?id=${x.y_id }">新建员工离职表 </a>
                                    		</div>
									</td>
								</tr>
								</c:forEach>
							</table>
						</div>
						</form>
						<div class="row">
                            <div class="col-xs-9"></div>
                            <div class="btn-group col-xs-3">
                               <div align="center">
                               		<c:if test="${page.cunrrentPage > 1 } ">
                               			<a href="${pageContext.request.contextPath }/list.do?page=${page.cunrrentPage - 1}">上一页</a>
                               		</c:if>
                               		<a href="${pageContext.request.contextPath }/list.do?page=${1}">首页</a>
                               		<c:forEach begin="1" end="${page.totalPage }"  step="1" var="i">
                               			<c:if test="${ page.cunrrentPage==i }">
                               				<a href="${pageContext.request.contextPath }/list.do?page=${i } "><font color="#ff0000">${i}</font></a>
                               			</c:if>
                               			<c:if test = "${page.cunrrentPage!=i }">
                               				<a href="${pageContext.request.contextPath }/list.do?page=${i } ">${i}</a>
                               			</c:if>
                               		</c:forEach>
                               		<a href="${pageContext.request.contextPath }/list.do?page=${page.totalPage }">末页</a>
                               		<c:if test="${page.cunrrentPage < page.totalPage }">
                               			<a href="${pageContext.request.contextPath }/list.do?page=${page.cunrrentPage + 1}">下一页</a>
                               		</c:if>
                               </div>
                             </div>
                            </div>
						<br />
						<div id="employeeTable">
							<table class="table table-hover">
								<label>离职表信息</label><br />
								<tr>
									<td>员工工号</td>
									<td>员工姓名</td>
									<td>申请状态</td>
								</tr>
								<c:forEach items="${data }" var="i">
								<tr>
									<td>${i.ygbh}</td>
									<td>${i.ygxm}</td>
									<td>
										<div class="btn-group"> 
                                        	<a  class="btn btn-primary dropdown-toggle" href="deletelz.do?id=${i.y_id}">通过</a>
                                    	</div>
                                    	<div class="btn-group"> 
                                        	<a  class="btn btn-primary dropdown-toggle" href="delz.do?id=${i.y_id}">删除 </a>
                                    	</div>
									
									</td>	
								</tr>
								</c:forEach>
							</table>
						</div>
					</div>
				</div>
			</center>
		</div>
	
	</body>
</html>